
import http from '@/utils/request.js'


//结算，生成订单信息
export function orderConfirm(data) {
	return http.request({
		url: '/order/confirm',
		method: 'post',
		data
	})
}
//提交订单，返回支付流水号
export function orderSubmit(data) {
	return http.request({
		url: '/order/submit',
		method: 'post',
		data
	})
}
//微信统一下单支付
export function wxPay(data) {
	return http.request({
		url: '/weChatPayController/pay',
		method: 'post',
		data
	})
}

//查询订单支付状态
export function queryOrderPayStatus(data) {
	return http.request({
		url: '/order/queryOrderPayStatus',
		method: 'get',
		data
	})
}